//
//  ARTConfig.h
//  ChartsDemo
//
//  Created by wusiping on 2021/4/1.
//

#ifndef ARTConfig_h
#define ARTConfig_h

#define kServiceUUID  @"FFE0"
#define kNotifyCharacteristicUUID @"FFE4"
#define kWriteCharacteristicUUID @"FFF2"

#define kWatch_ServiceUUID  @"FFE5"
#define kWatch_NotifyCharacteristicUUID @"FFE4"
#define kWatch_WriteCharacteristicUUID @"FFE9"
#define kDownloadAPPURL @"itms-apps://itunes.apple.com/cn/app/id1562668373?mt=8"

#pragma mark----------------枚举-------------
/// 设备类型
typedef NS_ENUM(NSInteger , ARTDeviceType){
    /// 未知设备
    ARTDeviceTypeUnknow            = -1,
    /// 血氧仪
    ARTDeviceTypeOximeter            = 0,
    /// 胎心仪
    ARTDeviceTypeFetalHeart           = 1,
    /// 胎心仪
    ARTDeviceTypeWatch           = 2,
    /// 高原血氧
    ARTDeviceTypePlateau           = 3,
    ARTDeviceTypePelvicMuscles     = 4
};

/// 手表测量类型
typedef NS_ENUM(NSInteger , ARTWatchMonitorType){
    /// 日常测量
    ARTWatchMonitorTypeDaily            = 1,
    /// 睡眠测量
    ARTWatchMonitorTypeSleep            = 2
};

/// 盆底肌训练模式
typedef NS_ENUM(NSInteger , ARTPelvicfloormuscleTrainingType){
    /// 常规训练
    ARTPelvicfloormuscleTrainingType_common            = 0,
    /// 自由训练
    ARTPelvicfloormuscleTrainingType_free            = 1
};

/// 盆底肌治疗方案
typedef NS_ENUM(NSInteger , ARTPelvicFloorMuscleTrainingPlan){
    /// 盆底肌康复治疗 常规
    BasinMuscle_Common           = 0,
    BasinMuscle_PlanA,
    BasinMuscle_PlanB,
    BasinMuscle_DoctorAdvice, /// 医嘱
    /// 产后康复
    Postpartum_Common,
    Postpartum_PlanA,
    Postpartum_DoctorAdvice,
    Postpartum_Customize,   /// 1天1次,疗程0/5次 用时5天 (产后)
    Postpartum_Urination,   /// 1天1次,疗程0/3次 用时5天 (产后排尿,疗程A方案)
    /// 胸部康复
    Chest_Common,
    Chest_PlanA,
    Chest_Customize, /// 一天一次,疗程0/12次,用时12天
    Chest_Maintenance, /// 一天一次,疗程0/10次,用时10天
    Chest_Four,        /// 一天一次,疗程0/4次,用时4天
    Chest_DoctorAdvice
};

/// 盆底肌治疗病症
typedef NS_ENUM(NSInteger , ARTPelvicFloorMuscleTrainingSymptoms){
//    康复治疗性功能障碍 默认时间为34分钟 脏器脱落为 20分钟    产后康复治疗 腹直接康复为34分钟 其余为25分钟
    /// 常规病症 默认  25分
    TrainingSymptoms_Common           = 0,
    TrainingSymptoms_SObstacles,   /// 盆底肌康复治疗: 性功能障碍 34分
    TrainingSymptoms_LossOrgans,   /// 盆底肌康复治疗: 脏器脱垂 20分
    TrainingSymptoms_DirectRecovery, /// 产后康复治疗 : 腹直肌康复 34分
};

typedef enum : NSUInteger {
    Rehabilitation_BasinMuscle = 0, /// 盆底肌肉康复治疗
    Rehabilitation_PelvicFloorTraining = 2, /// 盆底肌肉康复训练
    Rehabilitation_Postpartum = 3,          /// 产后康复
    Rehabilitation_Chest = 4,              /// 胸部康复
    Rehabilitation_StrengthMeasurement = 1, /// 肌力测量
} RehabilitationType;

#pragma mark----------------缓存-------------
/// 设置语言 0 简体中文 1 英文
static NSString *const SET_LANGUAGE = @"SET_LANGUAGE";

/// 连接过的设备列表
static NSString *const ART_Storage_DeviceList = @"ART.Storage.DeviceList";

/// 默认的连接设备
static NSString *const ART_Storage_DefaultDeviceUUID = @"ART.Storage.DefaultDeviceUUID";

static NSString *const K_PRIVACYPOPSHOW = @"K_PRIVACYPOPSHOW";

/// 用户信息 缓存key
static NSString *const EID_USERINFO_KEY = @"EID_USERINFO_KEY";

/// 历史血氧缓存数据
static NSString *const App_History = @"App_History_Data";

/// 历史血氧缓存数据
static NSString *const App_History_Plateau = @"App.History.Plateau";

/// 胎心缓存数据
static NSString *const App_History_FetalHeart = @"App.History.FetalHeart";

/// 手表日常缓存数据
static NSString *const App_History_DailyWatch = @"App.History.Watch_30012";

/// 手表睡眠缓存数据
static NSString *const App_History_SleepWatch = @"App.History.SleepWatch_30012";

/// 缓存连接状态
static NSString *const ART_Storage_ConnectStatus = @"ART.Storage.ConnectStatus";

/// 缓存血氧播放
static NSString *const ART_Storage_VioceStatus = @"ART.Storage.vioceStatus";

/// 缓存高原血氧播放
static NSString *const ART_Storage_PlateauVioceStatus = @"ART.Storage.plateauVioceStatus";

/// 缓存手表播放状态
static NSString *const ART_Storage_WatchVioceStatus = @"ART.Storage.watchVioceStatus";

/// 缓存血氧分享备注
static NSString *const ART_Storage_ShareInfo = @"ART.Storage.ShareInfo";

/// app是否强制更新
static NSString * const ART_Storage_ForcedUpdate = @"ART.Storage.ForcedUpdate";

/// 缓存手表当前的版本号
static NSString * const ART_Storage_WatchVersion = @"ART.Storage.WatchVersion";

/// 历史用户信息
static NSString *const ART_Storage_UserInfo = @"ART.Storage.UserInfo";

/// 历史用户信息
static NSString *const ART_Storage_Token = @"ART.Storage.Token";

/// 缓存盆底肌播放状态
static NSString *const ART_Pelvic_Floor_Muscles_VioceStatus = @"ART.PelvicFloorMuscles.VioceStatus";

/// 历史用户信息
static NSString *const ART_Storage_CurrentUser = @"ART.Storage.CurrentUser";

/// 盆底肌数据库名称
static NSString * const ART_PelvicFloorMusclesHis_DBName = @"PelvicFloorMusclesHis.sqlite";
/// 盆底肌历史表名称
static NSString * const ART_PelvicFloorMusclesHis_TBName = @"PelvicFloorMusclesHisTable3";
/// 盆底肌计划表名称
static NSString * const ART_PelvicFloorMusclesPlan_TBName = @"PelvicFloorMusclesPlanTable3";

#pragma mark----------------通知-------------
/// 切换语言的通知
static NSString *const ART_Notify_LanguageChanged = @"ART.Notify.LanguageChanged";

/// 从实时页面返回
static NSString *const ART_Notify_RealTimeBack = @"ART.Notify.RealTimeBack";

static NSString *const APP_BECOME_TEST = @"APP_BECOME_TEST";

static NSString *const ART_Notify_FindBlood = @"ART.Notify.FindBlood";

static NSString *const ART_Notify_DeviceConnected = @"ART.Notify.DeviceConnected";

static NSString *const ART_Notify_PauseFetalHeartRecord = @"ART.Notify.PauseFetalHeartRecord";

static NSString *const ART_Notify_StartFetalHeartRecord = @"ART.Notify.StartFetalHeartRecord";

/// 手表同步完成
static NSString *const ART_Notify_WatchSyncComplete = @"ART.Notify.WatchSyncComplete";

/// 盆底肌 蓝牙扫描页面,蓝牙连接成功通知
static NSString *const ART_Notify_PelvicFloorTrainingBluetoothConnection = @"ART.Notify.PelvicFloorTraining.ConnectStatus.Success";
/// 盆底肌 历史连接的设备
static NSString *const ART_Storage_PelvicFloorTraining_HisDevice = @"ART.Storage.PelvicFloorTraining.HisDevice";
/// 盆底肌 更新设备列表设备状态
static NSString *const ART_Storage_PelvicFloorTraining_DeviceStatus_Update = @"ART.Storage.PelvicFloorTraining.DeviceStatus.Update";

static NSString *const ART_Pubkey = @"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDTbZ6cNH9PgdF60aQKveLz3FTalyzHQwbp601y77SzmGHX3F5NoVUZbdK7UMdoCLK4FBziTewYD9DWvAErXZo9BFuI96bAop8wfl1VkZyyHTcznxNJFGSQd/B70/ExMgMBpEwkAAdyUqIjIdVGh1FQK/4acwS39YXwbS+IlHsPSQIDAQAB";
static NSString *const ART_Prikey = @"MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBANNtnpw0f0+B0XrRpAq94vPcVNqXLMdDBunrTXLvtLOYYdfcXk2hVRlt0rtQx2gIsrgUHOJN7BgP0Na8AStdmj0EW4j3psCinzB+XVWRnLIdNzOfE0kUZJB38HvT8TEyAwGkTCQAB3JSoiMh1UaHUVAr/hpzBLf1hfBtL4iUew9JAgMBAAECgYA1tGeQmAkqofga8XtwuxEWDoaDS9k0+EKeUoXGxzqoT/GyiihuIafjILFhoUA1ndf/yCQaG973sbTDhtfpMwqFNQq13+JAownslTjWgr7Hwf7qplYW92R7CU0v7wFfjqm1t/2FKU9JkHfaHfb7qqESMIbO/VMjER9o4tEx58uXDQJBAO0O4lnWDVjr1gN02cqvxPOtTY6DgFbQDeaAZF8obb6XqvCqGW/AVms3Bh8nVlUwdQ2K/xte8tHxjW9FtBQTLd8CQQDkUncO35gAqUF9Bhsdzrs7nO1J3VjLrM0ITrepqjqtVEvdXZc+1/UrkWVaIigWAXjQCVfmQzScdbznhYXPz5fXAkEAgB3KMRkhL4yNpmKRjhw+ih+ASeRCCSj6Sjfbhx4XaakYZmbXxnChg+JB+bZNz06YBFC5nLZM7y/n61o1f5/56wJBALw+ZVzE6ly5L34114uG04W9x0HcFgau7MiJphFjgUdAtd/H9xfgE4odMRPUD3q9Me9LlMYK6MiKpfm4c2+3dzcCQQC8y37NPgpNEkd9smMwPpSEjPW41aMlfcKvP4Da3z7G5bGlmuICrva9YDAiaAyDGGCK8LxC8K6HpKrFgYrXkRtt";

#endif /* ARTConfig_h */
